package com.thinkgem.jeesite.modules.jedispubsub;

import com.thinkgem.jeesite.common.utils.JedisUtil;

import redis.clients.jedis.Jedis;

public class Sub {
	public static void main(String[] args) {
		Jedis jedis = JedisUtil.getResource();
		RedisMsgPubSubListener listener = new RedisMsgPubSubListener();  
		jedis.subscribe(listener, "redisChatTest");  
	}
}
